package com.mybatis.student;

import java.util.List;

public class Teacher {
    private String id;
    private String name;
    private List<Clbum> classes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Clbum> getClasses() {
        return classes;
    }

    public void setClasses(List<Clbum> classes) {
        this.classes = classes;
    }
    // Getters and Setters

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Teacher ID: ").append(id).append("\n");
        sb.append("Teacher Name: ").append(name).append("\n");
        sb.append("Classes: \n");
        for (Clbum clbum : classes) {
            sb.append(clbum.toString()).append("\n");
        }
        return sb.toString();
    }
}
